package com.ruoyi.procured.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 采购订单-申请退款对象 tb_payment_return
 *
 */
@Data
@TableName(value="tb_payment_return")
public class PaymentReturn
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "payment_return_id")
    private Long id;

    /** 申请款关联Id */
    @TableField("payment_request_id")
    private String paymentRequestId;

    /** 关联的采购订单 ID */
    @TableField("procured_order_id")
    private String procuredOderId;

    @TableField("sku")
    private String sku;

    @TableField("product_id")
    private String productId;

    @TableField("quantity")
    private Integer quantity;

    /** 申请时间 */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**  申请人 */
    @TableField("created_by")
    private String createdBy;

    /**  申请人 */
    @TableField("delete_status")
    private String deleteStatus;

    /**  申请金额 */
    @TableField("amount")
    private BigDecimal amount;

    /**  运费 */
    @TableField("freight")
    private BigDecimal freight;


    @TableField(exist = false)
    private String productName;

    @TableField(exist = false)
    private String imageUrl;
}
